/**
 * @author 老刘
 * @desc 弹窗
 */
Page({
	data: {
		showDetailMask: false,
		showDetailWrapper: false,
		popupInClass: '',
		popupOutClass: '',
		type: ''
	},
	onClickPopupWindow (e) {
		this.setData({
			popupInClass: e.currentTarget.dataset.popupinclass,
			popupOutClass: e.currentTarget.dataset.popupoutclass,
			type: e.currentTarget.dataset.type,
			showDetailMask: true,
			showDetailWrapper: true
		});
	},
	hide () {
		this.setData({
			showDetailWrapper: false
		});
		setTimeout(() => {
			this.setData({
				showDetailMask: false
			});
		}, 400);
	}
});
